package com.itheima.ssm.dao;

import com.itheima.ssm.bean.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface AccountDao {
    @Select(value = "select * from account")
    List<Account> findAll();


    @Insert(value = "insert into account (name,money) values (#{name},#{money})")
    void saveAccount(Account account);
}
